<!-- <div class="" ng-app='routingDemoApp'>
	<button class="btn btn-success" ng-click="viewModel.add()" tabIndex="8">休假申请</button>
	<br/>
	<br/>
	<button class="btn btn-success" ng-click="viewModel.add()" tabIndex="9">加班申请</button>
	<br/>
	<br/>
	<button class="btn btn-success" ng-click="viewModel.add()" tabIndex="10">出差申请</button>
	<br/>
	<br/>
	<button class="btn btn-success" ng-click="viewModel.add()" tabIndex="11">外出申请</button>
	<br/>
</div> -->
<html>
    <head>
    	<meta charset="utf-8">
        <title>AngularJS 路由实例 - 菜鸟教程</title>
    </head>
    <body ng-app='routingDemoApp'>
     
        <h2>AngularJS 路由应用</h2>
        <ul>
            <li><a href="#/">首页</a></li>
            <li><a href="#/computers">电脑</a></li>
            <li><a href="#/printers">打印机</a></li>
            <li><a href="#/blabla">其他</a></li>
        </ul>
         
        <div ng-view></div>
        <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
        <script src="https://apps.bdimg.com/libs/angular-route/1.3.13/angular-route.js"></script>
        <script>
            angular.module('routingDemoApp',['ngRoute'])
            .config(['$routeProvider', function($routeProvider){
                $routeProvider
                .when('/',{template:'这是首页页面'})
                .when('/computers',{template:'这是电脑分类页面'})
                .when('/printers',{template:'这是打印机页面'})
                .otherwise({redirectTo:'/'});
            }]);
        </script>
     
     
    </body>
</html>